/*
 * *
 * author:cgm
 * date:18-5-21 上午10:51
 * /
 */

package com.kaili.common.exports;

import cn.afterturn.easypoi.entity.vo.NormalExcelConstants;
import com.kaili.common.exports.base.BaseExport;
import com.kaili.common.exports.base.ExportNotice;
import com.kaili.db.service.IHsEwbsTransferService;
import com.kaili.pojo.vo.TransExportVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * package name:com.kaili.common.exports
 * author:hasee
 * date :2018/5/21
 * project:micro-service
 * 到达中转验收查询导出
 */
@Component
@ExportNotice(name = "中转单导出")
public class ExportTransCheckQueryList extends BaseExport {
    @Autowired
    IHsEwbsTransferService transferService;

    @Override
    public HashMap doExport(Map parm) {
        HashMap ret = new HashMap();
        ret.put(NormalExcelConstants.CLASS, TransExportVo.class);
        List<TransExportVo> list = transferService.getTransList(parm);
        ret.put(NormalExcelConstants.DATA_LIST, list);
        return ret;
    }
}
